#include <ledParamTables.h>
/* Efficiency is 1024 @25C , the value is 990*1024/1000 when efficiency is 99.0% */ 
static const TempParams_t TEMP_CURVE_TABLE_RED[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
    /*0*/{1174U,26,1020U,1032U},
/*2*/{1162U,24,1020U,1031U},
/*4*/{1149U,22,1021U,1030U},
/*6*/{1136U,20,1021U,1030U},
/*8*/{1124U,18,1021U,1029U},
/*10*/{1111U,16,1021U,1028U},
/*12*/{1099U,14,1022U,1028U},
/*14*/{1086U,12,1022U,1027U},
/*16*/{1074U,10,1022U,1026U},
/*18*/{1061U,7,1023U,1026U},
/*20*/{1049U,4,1023U,1025U},
/*22*/{1036U,2,1023U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1011U,-1,1024U,1023U},
/*28*/{998U,-4,1024U,1022U},
/*30*/{986U,-6,1024U,1021U},
/*32*/{973U,-7,1025U,1021U},
/*34*/{961U,-9,1025U,1020U},
/*36*/{948U,-10,1025U,1019U},
/*38*/{936U,-12,1026U,1019U},
/*40*/{923U,-15,1026U,1018U},
/*42*/{911U,-18,1026U,1017U},
/*44*/{898U,-20,1026U,1017U},
/*46*/{885U,-22,1027U,1016U},
/*48*/{873U,-27,1027U,1015U},
/*50*/{860U,-26,1027U,1015U},
/*52*/{848U,-28,1028U,1014U},
/*54*/{835U,-30,1028U,1013U},
/*56*/{823U,-31,1028U,1013U},
/*58*/{810U,-33,1029U,1012U},
/*60*/{798U,-34,1029U,1011U},
/*62*/{785U,-36,1029U,1011U},
/*64*/{773U,-39,1029U,1010U},
/*66*/{760U,-41,1030U,1009U},
/*68*/{747U,-43,1030U,1009U},
/*70*/{735U,-46,1030U,1008U},
/*72*/{722U,-48,1031U,1007U},
/*74*/{710U,-50,1031U,1007U},
/*76*/{697U,-51,1031U,1006U},
/*78*/{685U,-54,1031U,1005U},
/*80*/{672U,-56,1032U,1005U},
/*82*/{660U,-57,1032U,1004U},
/*84*/{647U,-59,1032U,1003U},
/*86*/{635U,-60,1033U,1003U},
/*88*/{622U,-63,1033U,1002U},
/*90*/{609U,-64,1033U,1001U},
/*92*/{597U,-68,1034U,1001U},
/*94*/{584U,-70,1034U,1000U},
/*96*/{572U,-72,1034U,999U},
/*98*/{559U,-74,1034U,999U},
/*100*/{547U,-77,1035U,998U},
/*102*/{534U,-79,1035U,997U},
/*104*/{522U,-81,1035U,997U},
/*106*/{509U,-82,1036U,996U},
/*108*/{497U,-84,1036U,995U},
/*110*/{484U,-85,1036U,995U},
/*112*/{471U,-87,1036U,994U},
/*114*/{459U,-89,1037U,993U},
/*116*/{446U,-91,1037U,992U},
/*118*/{434U,-94,1037U,992U},
/*120*/{421U,-97,1038U,991U},





};

static const TempParams_t TEMP_CURVE_TABLE_GREEN[TEMP_CMP_NUM_MAX] = 
{

    /*0*/{1034U,46,974U,1029U},
/*2*/{1033U,43,978U,1028U},
/*4*/{1032U,38,982U,1028U},
/*6*/{1031U,34,986U,1027U},
/*8*/{1030U,29,991U,1027U},
/*10*/{1029U,26,995U,1026U},
/*12*/{1029U,21,999U,1026U},
/*14*/{1028U,18,1003U,1026U},
/*16*/{1027U,15,1007U,1025U},
/*18*/{1026U,10,1011U,1025U},
/*20*/{1025U,8,1015U,1024U},
/*22*/{1024U,4,1019U,1024U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1023U,-4,1028U,1023U},
/*28*/{1022U,-8,1032U,1023U},
/*30*/{1021U,-12,1036U,1022U},
/*32*/{1020U,-15,1040U,1022U},
/*34*/{1019U,-20,1044U,1021U},
/*36*/{1018U,-23,1048U,1021U},
/*38*/{1018U,-27,1052U,1021U},
/*40*/{1017U,-30,1056U,1020U},
/*42*/{1016U,-33,1061U,1020U},
/*44*/{1015U,-37,1065U,1019U},
/*46*/{1014U,-41,1069U,1019U},
/*48*/{1013U,-44,1073U,1018U},
/*50*/{1012U,-47,1077U,1018U},
/*52*/{1012U,-51,1081U,1018U},
/*54*/{1011U,-54,1085U,1017U},
/*56*/{1010U,-59,1089U,1017U},
/*58*/{1009U,-62,1093U,1016U},
/*60*/{1008U,-66,1098U,1016U},
/*62*/{1007U,-70,1102U,1015U},
/*64*/{1007U,-74,1106U,1015U},
/*66*/{1006U,-77,1110U,1015U},
/*68*/{1005U,-80,1114U,1014U},
/*70*/{1004U,-84,1118U,1014U},
/*72*/{1003U,-88,1122U,1013U},
/*74*/{1002U,-91,1126U,1013U},
/*76*/{1001U,-94,1130U,1013U},
/*78*/{1001U,-97,1135U,1012U},
/*80*/{1000U,-101,1139U,1012U},
/*82*/{999U,-104,1143U,1011U},
/*84*/{998U,-109,1147U,1011U},
/*86*/{997U,-112,1151U,1010U},
/*88*/{996U,-115,1155U,1010U},
/*90*/{996U,-120,1159U,1010U},
/*92*/{995U,-123,1163U,1009U},
/*94*/{994U,-126,1168U,1009U},
/*96*/{993U,-129,1172U,1008U},
/*98*/{992U,-132,1176U,1008U},
/*100*/{991U,-135,1180U,1007U},
/*102*/{990U,-139,1184U,1007U},
/*104*/{990U,-142,1188U,1007U},
/*106*/{989U,-145,1192U,1006U},
/*108*/{988U,-148,1196U,1006U},
/*110*/{987U,-151,1200U,1005U},
/*112*/{986U,-156,1205U,1005U},
/*114*/{985U,-160,1209U,1005U},
/*116*/{985U,-163,1213U,1004U},
/*118*/{984U,-167,1217U,1004U},
/*120*/{983U,-172,1221U,1003U},


};

static const TempParams_t TEMP_CURVE_TABLE_BLUE[TEMP_CMP_NUM_MAX] = 
{
    /*T(1C) efficiency deltaV(mV) x(%), y(%) */
/*0*/{1012U,22,1032U,975U},
/*2*/{1013U,20,1032U,979U},
/*4*/{1014U,17,1031U,983U},
/*6*/{1015U,16,1030U,987U},
/*8*/{1016U,14,1029U,992U},
/*10*/{1017U,13,1029U,996U},
/*12*/{1018U,10,1028U,1000U},
/*14*/{1019U,10,1027U,1004U},
/*16*/{1020U,8,1026U,1008U},
/*18*/{1021U,6,1026U,1012U},
/*20*/{1022U,5,1025U,1016U},
/*22*/{1023U,3,1024U,1020U},
/*24*/{1024U,0,1024U,1024U},
/*26*/{1024U,-3,1023U,1028U},
/*28*/{1025U,-4,1022U,1032U},
/*30*/{1026U,-6,1021U,1036U},
/*32*/{1027U,-8,1021U,1040U},
/*34*/{1028U,-9,1020U,1044U},
/*36*/{1029U,-11,1019U,1048U},
/*38*/{1030U,-12,1018U,1052U},
/*40*/{1031U,-14,1018U,1056U},
/*42*/{1032U,-14,1017U,1060U},
/*44*/{1033U,-16,1016U,1064U},
/*46*/{1034U,-17,1015U,1068U},
/*48*/{1035U,-17,1015U,1072U},
/*50*/{1036U,-20,1014U,1076U},
/*52*/{1037U,-21,1013U,1080U},
/*54*/{1038U,-23,1012U,1084U},
/*56*/{1039U,-25,1012U,1088U},
/*58*/{1040U,-27,1011U,1092U},
/*60*/{1041U,-29,1010U,1096U},
/*62*/{1042U,-30,1009U,1100U},
/*64*/{1043U,-32,1009U,1104U},
/*66*/{1044U,-32,1008U,1108U},
/*68*/{1045U,-34,1007U,1112U},
/*70*/{1046U,-36,1007U,1116U},
/*72*/{1047U,-37,1006U,1120U},
/*74*/{1048U,-38,1005U,1124U},
/*76*/{1049U,-39,1004U,1128U},
/*78*/{1050U,-39,1004U,1132U},
/*80*/{1051U,-41,1003U,1136U},
/*82*/{1052U,-42,1002U,1140U},
/*84*/{1053U,-44,1001U,1144U},
/*86*/{1054U,-45,1001U,1148U},
/*88*/{1055U,-46,1000U,1152U},
/*90*/{1056U,-48,999U,1156U},
/*92*/{1057U,-49,998U,1160U},
/*94*/{1058U,-50,998U,1164U},
/*96*/{1059U,-53,997U,1168U},
/*98*/{1060U,-53,996U,1172U},
/*100*/{1061U,-55,995U,1176U},
/*102*/{1062U,-57,995U,1180U},
/*104*/{1063U,-57,994U,1184U},
/*106*/{1064U,-59,993U,1188U},
/*108*/{1065U,-60,993U,1192U},
/*110*/{1066U,-60,992U,1196U},
/*112*/{1067U,-62,991U,1200U},
/*114*/{1068U,-63,990U,1204U},
/*116*/{1069U,-64,990U,1208U},
/*118*/{1070U,-64,989U,1212U},
/*120*/{1071U,-65,988U,1216U},



};


TempParams_t const * LP_GetTempTableRed(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_RED;
}

TempParams_t const * LP_GetTempTableGreen(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_GREEN;
}

TempParams_t const * LP_GetTempTableBlue(LedNum_t ledIndex)
{
    return TEMP_CURVE_TABLE_BLUE;
}


/*
const AccurateColorXYY_t calibratedColortable[] = 
{
  {21845, 21845, 100, 255,255,255},
  {X0, Y0, 100, 254,254,255},
};
*/



